package com.taugin.wechatreader.info;

import android.text.TextUtils;

/**
 * Created by ck01- on 2017/6/12.
 */

public class WxContactInfo {
    private static final int MAX_LEN = 20;
    private String userName;
    private String alias;
    private String nickName;
    private String icon;
    private String icon2;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public void setIcon2(String icon) {
        this.icon2 = icon;
    }

    public String getIcon2() {
        return this.icon2;
    }

    @Override
    public String toString() {
        String user = !TextUtils.isEmpty(userName) && userName.length() > MAX_LEN ? userName.substring(0, MAX_LEN) + "..." : userName;
        String str = "\n";
        str += "用户名 : " + user + "\n";
        str += "微信号 : " + alias + "\n";
        str += "昵  称 : " + nickName + "\n";
        str += "头  像 : " + icon + "\n";
        str += "头  像 : " + icon2 + "\n";
        return str;
    }
}
